package mytest.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

//Excel监听器
public class ExcelListener extends AnalysisEventListener<DataDemo> {
    @Override
    public void invoke(DataDemo dataDemo, AnalysisContext analysisContext) {
        //读取每行执行的方法,读取到的数据封装到dataDemo去
        System.out.println(dataDemo);
    }

    @Override//读取后执行的方法
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
